package com.chsi.onjava8.stream;

import java.util.Arrays;

/**
 * @Auther shikf
 * @Date 2020-06-23 10:36
 */
public class Machine2 {
    public static void main(String[] args) {
        Arrays.stream(new Operations[] {
                () -> Operations.show("Bing"),
                () -> Operations.show("Crack"),
                () -> Operations.show("Twist"),
                () -> Operations.show("Pop")
        }).forEach(Operations::execute);
    }
}
